{if $status}
   <div>
    {if $type_display==1}
        {if $url_detail}<a href="{$url_detail}">{/if}<img src="{$adv_banner}" width="{$adv_width}"/>{if $url_detail}</a>{/if}
    {else}
        <embed src="{$adv_banner}"  wmode="transparent" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="{$adv_width}" height="{$adv_height}"></embed>
    {/if}
    </div>
{/if}
    
{if $is_admin}
{$beginform}
    <div style="cursor:pointer;" onclick="jQuery('#AdvHomeBottomNewsHot_config').toggle()"><strong>Cấu hình AdvHomeBottomNewsHot</strong></div>
    <div id="AdvHomeBottomNewsHot_config" class="hide">
    {$msg}
    <table cellpadding="4" cellspacing="0">
        <tr>
            <td>
                Tình trạng:
            </td>
            <td>
                <select name="status"> {$status_option}</select>
            </td>
        </tr>
        <tr>
            <td>
              Loại hiển thị:
            </td>
            <td>
                <select name="type">{$type_option}</select>
            </td>
        </tr>
        <tr>
            <td>
                Url:            
            </td>
            <td>
                <input type="text" name="url" value="{$url}" />
            </td>
        </tr>
         <tr>
            <td>
               Upload:           
            </td>
            <td>
               <input type="file" name="banner"/> <br />
<strong>Ảnh</strong> {$adv_width}x...( .gif , .jpg ); <strong>Flash</strong>   {$adv_width}x{$adv_height}... ( .swf )
            </td>
        </tr>
         <tr>
            <td>
              
            </td>
            <td>
               <input type="submit"  name="banner" value="Cập nhật" />
            </td>
        </tr>
   </table>
    </div>
{$endform}
{/if}